home *** CD-ROM | disk | FTP | other *** search
- { programs need not be complex to be fun............}
- program sound;
- var i :integer;
- response :char;
- begin
- i := 15;
- clrscr;
- response := ' ';
- gotoXY(1,9);
- write('press + for higher, or - for lower, q to quit');
- gotoXY(1,10);
- write('frequency');
- repeat
- if keypressed then read(kbd,response);
- if response = '-' then i := i-10;
- if response = '+' then i := i+10;
- sound(i);
- gotoXY(15,10);
- write(i,' ');
- delay(70);
- until response = 'q';
- for i := 20 to 5000 do sound(i);
- nosound;
- end.